import { S } from '../../s';
import { IPSFileUploader } from './ipsfile-uploader';
import { PSValueItemEditorImpl } from './psvalue-item-editor-impl';

export class PSFileUploaderImpl
  extends PSValueItemEditorImpl
  implements IPSFileUploader
{
  get fileExts(): string {
    return this.M.fileExts;
  }

  get maxFileCount(): number {
    return this.M.maxFileCount;
  }

  get maxFileSize(): number {
    return this.M.maxFileSize;
  }

  get minFileCount(): number {
    return this.M.minFileCount;
  }
  get cls(): string {
    return 'PSFileUploaderImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._144) return true;
    return super.instanceof(cls);
  }
}
